#include<stdio.h>
#include<assert.h>
void *my_memcpy(void *dest,const void *src,size_t num)
{
    void* ret=dest;
    assert(dest&&src);
   while(num--)
   {
        *(char*)dest=*(char*)src;
        dest=(char*)dest+1;
        src=(char*)src+1;
   }
   return ret;
}
void *my_memcpy(void *dest,const void *src,size_t num)
{
    void *ret=dest;
    assert(dest&&src);
    while(num--)
    {
        *(char*)dest=*(char*)src;
        dest=(char*)dest+1;
        src=(char*)src+1;
    }
    return ret;
}

void *my_memmove(void *dest,const void *src,size_t num)
{
    void* ret=dest;                       
    if(dest<src)
    {
        while(num--)
        {
            *(char*)dest=*(char*)src;
            dest=(char*)dest+1;
            src=(char*)src+1;
        }
    }
    else
    {
        while(num--)
        {
            *((char*)dest+num)=*((char*)src+num);
        }
    }
}
int main()
{

}